package com.itheima.manager.controller;

import com.itheima.manager.Util.AgeUtil;
import com.itheima.manager.domain.Student;


public class StudentControll extends BaseStudentControll {

    @Override
    public Student inputStudentInfo(String id) {
        System.out.println("请输入学生姓名");
        String name = sc.next();
        System.out.println("请输入学生出生日期");
        String birthday = sc.next();

        String age = AgeUtil.getAge(birthday);

        Student stu = new Student(id,name,age,birthday);
        return stu;
    }
}

